package com.ruoyi.system.service.project.impl;

import java.util.List;

import com.ruoyi.system.domain.project.paper.PaperInfoTeacher;
import com.ruoyi.system.mapper.project.PaperInfoTeacherMapper;
import com.ruoyi.system.service.project.IPaperInfoTeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 论文教师Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-27
 */
@Service
public class PaperInfoTeacherServiceImpl implements IPaperInfoTeacherService
{
    @Autowired
    private PaperInfoTeacherMapper paperInfoTeacherMapper;

    /**
     * 查询论文教师
     * 
     * @param id 论文教师主键
     * @return 论文教师
     */
    @Override
    public PaperInfoTeacher selectPaperInfoTeacherById(Long id)
    {
        return paperInfoTeacherMapper.selectPaperInfoTeacherById(id);
    }

    /**
     * 查询论文教师列表
     * 
     * @param paperInfoTeacher 论文教师
     * @return 论文教师
     */
    @Override
    public List<PaperInfoTeacher> selectPaperInfoTeacherList(PaperInfoTeacher paperInfoTeacher)
    {
        return paperInfoTeacherMapper.selectPaperInfoTeacherList(paperInfoTeacher);
    }

    /**
     * 新增论文教师
     * 
     * @param paperInfoTeacher 论文教师
     * @return 结果
     */
    @Override
    public int insertPaperInfoTeacher(PaperInfoTeacher paperInfoTeacher)
    {
        return paperInfoTeacherMapper.insertPaperInfoTeacher(paperInfoTeacher);
    }

    /**
     * 修改论文教师
     * 
     * @param paperInfoTeacher 论文教师
     * @return 结果
     */
    @Override
    public int updatePaperInfoTeacher(PaperInfoTeacher paperInfoTeacher)
    {
        return paperInfoTeacherMapper.updatePaperInfoTeacher(paperInfoTeacher);
    }

    /**
     * 批量删除论文教师
     * 
     * @param ids 需要删除的论文教师主键
     * @return 结果
     */
    @Override
    public int deletePaperInfoTeacherByIds(Long[] ids)
    {
        return paperInfoTeacherMapper.deletePaperInfoTeacherByIds(ids);
    }

    /**
     * 删除论文教师信息
     * 
     * @param id 论文教师主键
     * @return 结果
     */
    @Override
    public int deletePaperInfoTeacherById(Long id)
    {
        return paperInfoTeacherMapper.deletePaperInfoTeacherById(id);
    }
}
